Skip to content

Disable spurious gcc warning in xfunction::broadcast_shape#2816

Open
hsanzg wants to merge 1 commit intoxtensor-stack:masterfrom
hsanzg:gcc-warn
Open

Disable spurious gcc warning in xfunction::broadcast_shape#2816
hsanzg wants to merge 1 commit intoxtensor-stack:masterfrom
hsanzg:gcc-warn

Conversation

@hsanzg
Copy link

@hsanzg hsanzg commented Nov 28, 2024

Checklist

  • The title and commit message(s) are descriptive.
  • Small commits made to fix your PR have been squashed to avoid history pollution.
  • Tests have been added for new features or bug fixes.
  • API of new functions and classes are documented.

Description

Recent versions of gcc emit an incorrect array-bounds warning when copying the cached shape into the passed input, if the latter is of type std::array<size_t, 1>.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852

Recent versions of gcc emit an incorrect `array-bounds` warning when
copying the cached shape into the passed `input`, if the latter is of
type `std::array<size_t, 1>`.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant